package com.guoxin.chapter3.waitnotify.pipereaderwriter;

import java.io.PipedReader;

public class ThreadRead extends Thread{
	private ReadData readData;
	private PipedReader reader;
	public ThreadRead(ReadData readData, PipedReader reader) {
		super();
		this.readData = readData;
		this.reader = reader;
	}
	
	@Override
	public void run() {
		readData.readMethod(reader);
	}
}
